package com.deep.spring.stream.io3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");
        ShopList list = (ShopList) ctx.getBean("list");
        System.out.println(list);

        ShopList list2 = (ShopList) ctx.getBean("list2");
        System.out.println(list2);
    }
}
